package cn.admin.entity;

import lombok.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Author: 毛苏宇
 * @Description: 分期数据
 * @Date: Create in 19:54 2019/3/21
 */
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Getter
public class ByStages implements Serializable {

    private int bs_id;
    private int user_id;    //用户id
    private int cycle_id;    //分期的周期,如3期,12期
    private double bs_interest; //总利息
    private double bs_loan;  //借了多少钱
    private Timestamp bs_time;  //借款时间

    public void setBs_id(int bs_id) {
        this.bs_id = bs_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public void setCycle_id(int cycle_id) {
        this.cycle_id = cycle_id;
    }

    public void setBs_interest(double bs_interest) {
        this.bs_interest = bs_interest;
    }

    public void setBs_loan(double bs_loan) {
        if (bs_loan < 5000) {
            this.bs_loan = 5000;
        }
        this.bs_loan = bs_loan;
    }

    public void setBs_time(Timestamp bs_time) {
        this.bs_time = bs_time;
    }
}
